package cn.com.zal.cgweb.pojo;



/**
 * TcOrderDetailId entity. @author MyEclipse Persistence Tools
 */

public class TcOrderDetailId implements java.io.Serializable {

	// Fields

	private String orderUuid;
	private Long productId;

	// Constructors

	/** default constructor */
	public TcOrderDetailId() {
	}

	/** full constructor */
	public TcOrderDetailId(String orderUuid, Long productId) {
		this.orderUuid = orderUuid;
		this.productId = productId;
	}

	// Property accessors

	public String getOrderUuid() {
		return this.orderUuid;
	}

	public void setOrderUuid(String orderUuid) {
		this.orderUuid = orderUuid;
	}

	

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TcOrderDetailId))
			return false;
		TcOrderDetailId castOther = (TcOrderDetailId) other;

		return ((this.getOrderUuid() == castOther.getOrderUuid()) || (this
				.getOrderUuid() != null
				&& castOther.getOrderUuid() != null && this.getOrderUuid()
				.equals(castOther.getOrderUuid())))
				&& ((this.getProductId() == castOther.getProductId()) || (this.getProductId() != null
						&& castOther.getProductId() != null && this.getProductId().equals(
						castOther.getProductId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getOrderUuid() == null ? 0 : this.getOrderUuid().hashCode());
		result = 37 * result
				+ (getProductId() == null ? 0 : this.getProductId().hashCode());
		return result;
	}

}